import request from '@/util/ajax.js'

export function getUsersByGroupAPI(reqData) {
  return request({
    url: '/back_front/groups_users/getUsersByGroupService',
    method: 'get',
    params: reqData
  })
}

export function getGroupsByUserAPI(reqData) {
  return request({
    url: '/back_front/groups_users/getGroupsByUserService',
    method: 'get',
    params: reqData
  })
}

export function changeUsersByGroupAPI(reqData) {
  return request({
    url: '/back_front/groups_users/changeUsersByGroupService',
    method: 'post',
    data: reqData
  })
}

export function changeGroupsByUserAPI(reqData) {
  return request({
    url: '/back_front/groups_users/changeGroupsByUserService',
    method: 'post',
    data: reqData
  })
}
